import { POST } from "@/services/request.js";
//引入封装的请求方法
export default {
    //添加购物车
    cartAdd(data = {}) {
        return POST({
            url: "cart/add",
            params: data
        })
    },
    //购物车列表
    cartIndex(data = {}) {
        return POST({
            url: "cart/index",
            params: data
        })
    },
    //购物车编辑
    cartEdit(data = {}) {
        return POST({
            url: "cart/edit",
            params: data
        })
    },
    //购物车删除
    cartDel(data = {}) {
        return POST({
            url: "cart/del",
            params: data
        })
    },
    confirmAdd(data = {}) {
        return POST({
            url: "cart/confirm",
            params: data
        })
    },

}